<button data-ng-click="post()">POST</button>
<form method="post" target="popup" id="formID" style="display:none" action="https://example.com/barcode/generate" >
    <input type="hidden" id="htmltable" name="htmltable" value="" />
    <input type="hidden" name="fileName" value="excelExport" />
</form>